coreLog.detailPage = {

    getBaseFormParam : function() {
        var _this = this;
        return {
            type : 'form',
            id : 'lsi-log-detail-form',
            url : this.getCompUrl('baseInfoForm'),
            fields : coreLog.getBaseInfoFormFields(),
            columns : 1,
            readonly : true
        }
    },

    urlManager : {
        baseInfoForm : coreLog.baseUrl + '/{id}',
    },

    setCompUrl : function() {
        Gikam.setCompUrl({
            'lsi-log-detail-form' : this.getCompUrl('baseInfoForm'),
        });
    },

    getCompUrl : function(name) {
        if (Gikam.isEmpty(this.param.id)) {
            return '';
        }
        return Gikam.printf(this.urlManager[name], {
            id : this.param.id
        });
    },

    create : function() {
        var _this = this;
        Gikam.create('layout', {
            id : 'lsi-log-layout',
            renderTo : Gikam.getLastModal().window.$dom,
            center : {
                items : [ this.getBaseFormParam() ]
            }
        });
    },

    init : function(param) {
        this.param = param;
        this.create();
    }
}